package com.mihuo.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.mihuo.entity.SysConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ConfigVO {

    @ApiModelProperty(value="配置键名（唯一标识）")
    private String key;

    @ApiModelProperty(value="配置值")
    private String value;

    @ApiModelProperty(value="值类型：string、number、boolean、json等")
    private String type;

    public ConfigVO(SysConfig sysConfig) {
        this.key = sysConfig.getConfigKey();
        this.value = sysConfig.getConfigValue();
        this.type = sysConfig.getConfigType();
    }
}
